Nuprl Definition : split_tail
4,23
postcript
pdf
split_tail(
L
|
x
.
f
(
x
))
== Case of
L
== Ca
nil
<nil,nil>
== Ca
a
.
as
, rec:
split_tail(
as
|
x
.
f
(
x
))/
hs
,
ftail
.
== Ca
a
.
as
, rec:
Case of
hs
== Ca
a
.
as
, rec:
Ca
nil
if
f
(
a
)
<nil,
a
.
ftail
> else <[
a
],
ftail
> fi
== Ca
a
.
as
, rec:
Ca
x
.
y
, rec:
<
a
.
hs
,
ftail
>
(recursive)
latex
clarification:
split_tail(
L
|
x
.
f
(
x
))
== Case of
L
== Ca
nil
<nil,nil>
== Ca
a
.
as
, rec:
split_tail(
as
|
x
.
f
(
x
))/
hs
,
ftail
.
== Ca
a
.
as
, rec:
Case of
hs
== Ca
a
.
as
, rec:
Ca
nil
if
f
(
a
)
<nil,
a
.
ftail
> else <
a
.nil,
ftail
> fi
== Ca
a
.
as
, rec:
Ca
x
.
y
, rec:
<
a
.
hs
,
ftail
>
(recursive)
latex
Definitions
Y
,
if
b
t
else
f
fi
FDL editor aliases
split_tail
origin